import request from '@/api/request'

function orderList(data) {
  return request({
    url: '/api/leju/admin/order/list',
    method: 'get',
    data
  })
}

function dangerDele(data) {
  return request({
    url: '/api/leju/admin/order/delFocus',
    method: 'get',
    data
  })
}
function getDetail(data) {
  return request({
    url: '/api/leju/admin/order/detail',
    method: 'get',
    data
  })
}
function getOrderUser(data) {
  return request({
    url: '/api/leju/admin/order/orderUserInfo',
    method: 'get',
    data
  })
}
function sendDone(data) {
  return request({
    url: '/api/leju/admin/order/sendDone',
    method: 'post',
    data
  })
}
function closeOrder(data) {
  return request({
    url: '/api/leju/admin/order/closeOrder',
    method: 'post',
    data
  })
}

export default {
  orderList,
  dangerDele,
  getDetail,
  getOrderUser,
  sendDone,
  closeOrder
}